package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 投票记录表
 * </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@TableName("activity_poll_record")
@Getter
@Setter
public class ActivityPollRecord extends Model<ActivityPollRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 用户账户
     */
	@TableField("user_account")
	private String userAccount;
    /**
     * ip地址
     */
	@TableField("ip_address")
	private String ipAddress;
    /**
     * 方案编号
     */
	@TableField("solution_id")
	private Long solutionId;
    /**
     * 投票时间
     */
	@TableField("create_time")
	private Date createTime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
